<include file="../header" />
<body class="J_scroll_fixed">
<script type="text/javascript" src="__ROOT__/statics/js/ajaxfileupload.js"></script>
<script type="text/javascript" src="__ROOT__/statics/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__ROOT__/statics/js/ueditor/ueditor.all.min.js"></script>

<script type="text/javascript">
    $(function () {

        $("button#send").click(function() {

            $("form").submit();

        });


    });
</script>
<div class="wrap jj">

    <div class="common-form">
        <form method="post" class="form-horizontal J_ajaxForm" action="{:U('rule/editPost')}">
            <fieldset>
                <input type="hidden" name="id" value="{$info.rule_id}" />
                <div class="control-group">
                    <label class="control-label">描述:</label>
                    <div class="controls">
                        <input type="text" class="input" name="desc" value="{$info.desc}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">所属病症:</label>
                    <div class="controls">
                        <select name="categoryId">
                            {:getCategorySelectOptionHtml($info['category_id'], 0)}
                        </select>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">价格:</label>
                    <div class="controls">
                        <input type="text" class="input" name="price" value="{$info.price}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">相隔天数:</label>
                    <div class="controls">
                        <input type="text" class="input" name="days" value="{$info.days}">
                    </div>
                </div>

            </fieldset>

            <div class="form-actions">
                <button id="send" type="button" class="btn btn-primary">保存</button>
                <a class="btn" href="__URL__">返回</a>
            </div>
        </form>
    </div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>